{block content}
    {var $oddil}{foreach $oddily as $odd}{var $oddil = $odd->oddil}{/foreach}
    
    <div id="necoonas">
    <h2>O nás:</h2>
        <ul>
            <li> Nic si tu nenapsali! </li>
            <li> Kalendář <a n:href="Povoden:kalendar?oddil={$id}">zde</a> </li>
        </ul>
    </div>

    <div id="aktualne">
       <h2>Aktualně v oddílě:</h2>
       <ul>
            {foreach $aktuality as $aktualita}
                <li><a href="aktuality#{$aktualita->id}">{$aktualita->nadpis}</a></li>
            {/foreach}
       </ul>
    </div>
   <h3>A toto jsme my, {$oddil}:</h3>
   <div id="clenove">
        {*foreach $druziny as $druzina*}
        {*while $druziny = $druzina->fetch()*}
            {foreach $cleni as $clen}
                <div class="clen"><h4>{$clen->nick}</h4>
                    <div class="clenobsah">
                        <div class="clenfoto">
                            {var $fotka=$clen->foto}
                            {if $fotka==null OR $fotka==" " OR $fotka==NULL or $fotka=="null" or $fotka=="NULL"}
                                {var $fotka="default.gif"}
                            {/if}
                            <img src="{$basePath}/images/{$id}/{!$fotka}" width="125px" alt="$foto">
                            <div class="frcky">
                                {foreach $frcky as $frcka}
                                {if $frcka->id == $clen->id}
                                    <img class="clenfrcka" src="{$basePath}/images/frcky/{$frcka->url}" alt="{$frcka->nazev}">
                                {/if}
                            {/foreach}
                            </div>
                        </div>
                        <div class="clenmezi"></div>
                            <b>Jméno:</b> {$clen->jmeno} {$clen->prijmeni}<br>
                            <b>Družina:</b> {*$clen->oddil*}{$clen->druzina}<br>
                            {foreach $otazky as $otazka}
                                {if $otazka->id == $clen->id}
                                    <b>{$otazka->otazka}:</b> {$otazka->odpoved}<br>
                                {/if}
                            {/foreach}
                    </div>
                </div>
            {/foreach}
       {*/foreach*}
       {*/while*}
   </div>